<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>掌阅数据统计平台</title>

<link href="{{static_url('dwz/themes/default/style.css')}}" id="themeid" rel="stylesheet" type="text/css" media="screen"/>
<link href="{{static_url('dwz/themes/css/core.css')}}" rel="stylesheet" type="text/css" media="screen"/>
<link href="{{static_url('dwz/themes/css/print.css')}}" rel="stylesheet" type="text/css" media="print"/>
<link href="{{static_url('dwz/uploadify/css/uploadify.css')}}" rel="stylesheet" type="text/css" media="screen"/>
<!--[if IE]>
<link href="{{static_url('dwz/themes/css/ieHack.css')}}" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->
<style type="text/css">
	#header{height:85px}
	#leftside, #container, #splitBar, #splitBarProxy{top:90px}
</style>

<link href="{{static_url('css/base.css')}}" rel="stylesheet" type="text/css" />

<script src="{{static_url('dwz/js/speedup.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/js/jquery-1.7.2.min.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/js/jquery.cookie.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/js/jquery.validate.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/js/jquery.bgiframe.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/xheditor/xheditor-1.1.14-zh-cn.min.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/uploadify/scripts/swfobject.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/uploadify/scripts/jquery.uploadify.v2.1.0.js')}}" type="text/javascript"></script>

<script src="{{static_url('dwz/bin/dwz.min.js')}}" type="text/javascript"></script>
<script src="{{static_url('dwz/js/dwz.regional.zh.js')}}" type="text/javascript"></script>

<!-- svg图表  supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+ -->
<script type="text/javascript" src="{{static_url('dwz/chart/raphael.js')}}"></script>
<script type="text/javascript" src="{{static_url('dwz/chart/g.raphael.js')}}"></script>
<script type="text/javascript" src="{{static_url('dwz/chart/g.bar.js')}}"></script>
<script type="text/javascript" src="{{static_url('dwz/chart/g.line.js')}}"></script>
<script type="text/javascript" src="{{static_url('dwz/chart/g.pie.js')}}"></script>
<script type="text/javascript" src="{{static_url('dwz/chart/g.dot.js')}}"></script>

<script src="{{static_url('js/highcharts.js')}}"></script>
<script src="{{static_url('js/exporting.js')}}"></script>

<script type="text/javascript">
$(function(){
	DWZ.init("{{static_url('dwz/dwz.frag.xml')}}", {
		loginUrl:"/user/login", loginTitle:"登录",	// 弹出登录对话框
		statusCode:{ok:200, error:300, timeout:301}, //【可选】
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"{{static_url('dwz/themes')}}"});
			//setTimeout(function() {$("#sidebar .toggleCollapse div").trigger("click");}, 10);
		}
	});
});
</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<ul class="nav">
                    {% if current_user %}
					<li><a href="#">欢迎 {{current_user.name}}</a></li>
                    <li><a href="/user/passwd/change" target="dialog" width="600">修改密码</a></li>
					<li><a href="/user/logout">退出</a></li>
                    {% else %}
					<li><a href="/user/login">登陆</a></li>
                    {% end %}
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul>
			</div>
		
			<div id="navMenu">
				<ul>
					<li class="selected"><a href="/me"><span>首页</span></a></li>
                    {% if touch_resource(['user']) %}
					<li><a href="/user"><span>用户管理</span></a></li>
                    {% end %}
                    {% if touch_resource(['basic','visit','topn','book','factstat','conf','e_value','wap','factshow','arpu','operation','recommendation_only','book_only','accounting','e_value_end4_only','ios_basic','wap_all','operation_all']) %}
					<li><a href="/data"><span>厂商数据</span></a></li>
                    {% end %}
				</ul>
			</div>
		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
                <div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>
                    <div class="accordion" fillSpace="sidebar">
                    <div class="accordionHeader">
                    <h2><span>Folder</span>首页</h2>
                    </div>
                    <div class="accordionContent">
                        <ul class="tree treeFolder">
                            <li><a href="/me/home" target="navTab" rel="main">我的主页</a></li>
                        </ul>
                    </div>
                </div>
			</div>
		</div>
		<div id="container">
            <div id="navTab" class="tabsPage">
                <div class="tabsPageHeader">
                    <div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
                        <ul class="navTab-tab">
                            <li tabid="main" class="main">
                            <a href="#"><span><span class="home_icon">我的主页</span></span></a>
                            </li>
                        </ul>
                    </div>
                    <div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
                    <div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
                    <div class="tabsMore">more</div>
                </div>
                <ul class="tabsMoreList">
                    <li><a href="javascript:;">我的主页</a></li>
                </ul>
                {% module MyHomeModule() %}
            </div>
        </div>
    </div>
	<div id="footer">Copyright &copy; 2014 掌阅</div>
</body>
</html>
